package com.example.model;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class User {
    private Integer id;         //id,主键
    private String username;      //用户账号
    private String password;    //密码
    private String nickName;    //用户名
    private Integer state;          //账号状态，0为正常运行，1为锁定
    private String headPortrait;//t头像访问路径
    private double money;       //用户余额
    private Integer num;        //藏品数量

    public User(String username, String nickName, String headPortrait) {
        this.username = username;
        this.nickName = nickName;
        this.headPortrait = headPortrait;
    }
}
